package com.example.badyloans.servlet;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.example.badyloans.pojo.TRecharge;
import com.example.badyloans.dao.TRechargeMapper;
import com.example.badyloans.servlet.TRechargeService;

import java.util.List;

@Service
public class TRechargeServiceImpl implements TRechargeService{

    @Resource
    private TRechargeMapper tRechargeMapper;

    @Override
    public int deleteByPrimaryKey(String id) {
        return tRechargeMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insertSelective(TRecharge record) {
        return tRechargeMapper.insertSelective(record);
    }

    @Override
    public TRecharge selectByPrimaryKey(String id) {
        return tRechargeMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(TRecharge record) {
        return tRechargeMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int update(Integer state,String id) {
        return tRechargeMapper.update(state,id);
    }

    @Override
    public List<TRecharge> selecttrecharge(String userid,int currentPageNo,
                                           int pageSize,String beginDate,String endDate,String state) {
        return tRechargeMapper.selecttrecharge(userid,currentPageNo,
                pageSize,beginDate,endDate,state);
    }

    @Override
    public int selectBy(String userid,String state,String beginDate,String endDate) {
        return tRechargeMapper.selectBy(userid,state,beginDate,endDate);
    }

    @Override
    public TRecharge Selectchaxun() {
        return tRechargeMapper.selectchaxun();
    }


}
